import { createContext } from "solid-js";
import { TypeBox } from "../type";
import { getUUid } from "../path/until";


export const getBoxContext: () => TypeBox.State = (() => {
  const _state: TypeBox.StateValue = {
    uid: getUUid(),
    cacheId: "",
  }
  //数据中心配置
  const _option: TypeBox.StateOptions = {

  }
  return [_state, _option]
});
export const BoxContext = createContext<TypeBox.State>([{
  uid: "",
  cacheId: "",
}, {}]);